package lib

import (
	"github.com/astaxie/beego"
	"github.com/go-sdk/upyun"
)

func init()  {
	up := upyun.NewUpYun(&upyun.UpYunConfig{
		Bucket:"aries-upyun",
		Operator:"liyong",
		Password:"liyong184244",
	})
	err := up.Put(&upyun.PutObjectConfig{
		Path:"/",
		LocalPath:"",
	})
	if err != nil {
		beego.Info("文件上传失败,错误信息",err)
		return
	}
}